<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:88:"/www/wwwroot/crm.liunuo.net/public/../application/user/view/customer/remind_mobile.phtml";i:1552999926;s:67:"/www/wwwroot/crm.liunuo.net/application/user/view/base_mobile.phtml";i:1552999924;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title><?php echo config('website.site_name')?></title>
<link rel="stylesheet" type="text/css" href="/static/hui/css/hui.css" />
<style>.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}</style>

<link rel="stylesheet" href="/static/css/fonts.css">

</head>
<body>

<header class="hui-header">
    <div id="hui-back"></div>
    <div id="hui-header-sreach">
    	<div id="hui-header-sreach-icon"></div>
            <form action="<?php echo url('user/customer/index'); ?>" class="layui-form" method="get">
                <input type="text" name="cname" id="searchKey" value="<?php echo input('cname'); ?>" autocomplete="off" placeholder="请输入客户名称" onkeydown="if(event.keyCode==13)return false;"  class="layui-input"/>
                <button class="layui-btn layui-btn-primary ajax-search"><i class="fa fa-search"></i></button>
            </form>
    </div>
    <div id="hui-header-menu" onclick="hui.showSlideMenu();"></div>
</header>
<div class="hui-wrap">
    <div style="padding-top:5px;">
        <a href="<?php echo url('user/customer/remind', ['type' => 1]); ?>" class="hui-button hui-button-small hui-fl <?php if(input('type') == 1 or input('type') == ''): ?>hui-danger<?php endif; ?>" style="width:100%">今日待处理</a>
        <a href="<?php echo url('user/customer/remind', ['type' => 2]); ?>" class="hui-button hui-button-small hui-fl <?php if(input('type') == 2): ?>hui-danger<?php endif; ?>" style="width:50%">全部待处理</a>
        <a href="<?php echo url('user/customer/remind', ['type' => 3]); ?>" class="hui-button hui-button-small hui-fl <?php if(input('type') == 3): ?>hui-danger<?php endif; ?>" style="width:50%">已处理提醒</a>
        <a href="<?php echo url('user/customer/remind', ['type' => 4]); ?>" class="hui-button hui-button-small hui-fl <?php if(input('type') == 4): ?>hui-danger<?php endif; ?>" style="width:50%">待二次处理</a>
        <a href="<?php echo url('user/customer/remind', ['type' => 5]); ?>" class="hui-button hui-button-small hui-fl <?php if(input('type') == 5): ?>hui-danger<?php endif; ?>" style="width:50%">过期未处理</a>
    </div>
    <div class="hui-list" style="margin-top:18px;">
        <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "$empty" ;else: foreach($list as $key=>$v): $customer = \app\common\model\Customer::get($v['cid']); ?>
        <a href="javascript:hui.open('<?php echo url('user/customer/show', ['id' => $customer['id']]); ?>');">
            <div class="hui-list-icons">
                <img src="/static/hui/img/index/account.png" />
            </div>
            <div class="hui-list-text" style="font-weight: bold;">
                <?php echo $customer['cname']; ?>
                <div class="hui-list-info">
                    <?php echo date('Y-m-d',$v['remind_time']); ?>
                </div>
            </div>
        </a>
        <a href="javascript:hui.open('<?php echo url('user/customer/show', ['id' => $customer['id']]); ?>');">
            <div style="font-size:13px;color:#898989;padding-left:20px;padding-top:5px;line-height: 22px;">
                <?php echo $v['remark']; ?>
                <br><?php echo get_user_realname($v['uid']); ?> ：<?php if(isset($v['jdata']['web']) and $v['jdata']['web'] =='on'): ?><i class="fa fa-comment" aria-hidden="true" title="后台提醒"></i> <?php endif; if(isset($v['jdata']['wechat']) and $v['jdata']['wechat'] =='on'): ?><i class="fa fa-weixin" aria-hidden="true" title="微信提醒"></i> <?php endif; if(isset($v['jdata']['sms']) and $v['jdata']['sms'] =='on'): ?><i class="fa fa-envelope-open" aria-hidden="true" title="短信提醒"></i> <?php endif; ?>
            </div>
        </a>
        <div style="padding-top:5px;">
            <?php if($v['status']=='0'): ?>
            <a href="javascript:hui.open('<?php echo url('user/customer/set_remind', ['id' => $v['id']]); ?>');" class="hui-button hui-button-small hui-fl" style="width:50%"><i class="fa fa-check-square-o"></i> 待处理</a>
            <?php else: ?>
            <a href="javascript:hui.open('<?php echo url('user/customer/set_remind', ['id' => $v['id']]); ?>');" class="hui-button hui-button-small hui-fl" style="width:50%"><i class="fa fa-check-square-o"></i> 已处理</a>
            <?php endif; ?>
            
            <a href="javascript:hui.open('<?php echo url('user/customer/del_remind', ['id' => $v['id']]); ?>');" class="hui-button hui-button-small hui-fl ajax-delete" style="width:50%"><i class="fa fa-trash-o"></i> 删 除</a>
        </div>
        <?php endforeach; endif; else: echo "$empty" ;endif; ?>
    </div>
    <div class="page" style="margin-bottom: 70px;"><?php echo $list->mobile_render(); ?></div>
    
</div>

<div class="hui-slide-menu">
    <ul>
        <?php if(is_array($navbar) || $navbar instanceof \think\Collection || $navbar instanceof \think\Paginator): if( count($navbar)==0 ) : echo "" ;else: foreach($navbar as $key=>$v): if($v['id']=='1'): if(is_array($v['children']) || $v['children'] instanceof \think\Collection || $v['children'] instanceof \think\Paginator): if( count($v['children'])==0 ) : echo "" ;else: foreach($v['children'] as $key=>$n1): ?>
                    <li><a href="javascript:hui.open('<?php echo \think\Request::instance()->root(true); ?>/<?php echo $n1['url']; ?>');"><?php echo $n1['name']; ?></a></li>
                <?php endforeach; endif; else: echo "" ;endif; endif; endforeach; endif; else: echo "" ;endif; ?>
        <li><a href="javascript:hui.open('<?php echo url('user/index/logout'); ?>');">退出账户</a></li>
        <li style="padding-top:30px;">
            <button type="button" class="hui-button hui-button-large" onclick="hui.closeSlideMenu();">关闭菜单</button>
        </li>
    </ul>
</div>
<div id="hui-footer">
    <a href="javascript:hui.open('/user/');" id="nav-home">
        <div class="hui-footer-icons hui-icons-home"></div>
        <div class="hui-footer-text">首页</div>
    </a>
    <a href="javascript:hui.open('/user/customer/track');" id="nav-news">
        <div class="hui-footer-icons hui-icons-news"></div>
        <div class="hui-footer-text">跟踪</div>
    </a>
    <div style="width:20%; text-align:center;" class="hui-fl">
        <img src="/static/hui/img/logo_footer.png" height="44" onclick="hui.open('/user/customer/');" />
    </div>
    <a href="javascript:hui.open('/user/customer/remind');" id="nav-forum">
        <div class="hui-footer-icons hui-icons-forum"></div>
        <div class="hui-footer-text">提醒</div>
    </a>
    <a href="javascript:hui.showSlideMenu();" id="nav-my" id="hui-header-menu" onclick="hui.showSlideMenu();">
        <div class="hui-footer-icons hui-icons-my"></div>
        <div class="hui-footer-text">我的</div>
    </a>
</div>
<script src="/static/hui/js/hui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
hui.slideMenu();
//hui('#nav-my').pointMsg();
//hui('#nav-news').pointMsg('hot', null, null, null, '1px');
<?php $remind_sum= today_remind_sum();?>
hui('#nav-forum').pointMsg(<?php echo $remind_sum['count']; ?>);
</script>
<script src="/static/libs/layui/layui.all.js"></script>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/layui.base_mobile.js"></script>

</body>
</html>